using System.Threading;

namespace ThreadingPrimeNumberSample.Core
{
    public class ThreadProxy : IThreadProxy
    {
        public int GetCurrentThreadID()
        {
            return Thread.CurrentThread.ManagedThreadId;
        }

        public bool QueueUserWorkItem(WaitCallback callBack)
        {
            return ThreadPool.QueueUserWorkItem(callBack);
        }
    }
}